package com.googlecode.jyoutubeuploader.controller;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author tom
 *
 *	Entry point for the program. This class facilitates bootstrapping the whole application.
 */
public class Launcher {

	private static final String APPLICATION_CONTEXT_XML_LOCATION = "context/application-context.xml";
	
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext(APPLICATION_CONTEXT_XML_LOCATION);
		JYoutubeUploader jtu = context.getBean(JYoutubeUploader.class);
		jtu.launchApp(args);
	}
	
}
